home *** CD-ROM | disk | FTP | other *** search
- @echo off
- echo.
- echo.
- echo.
- echo.
- echo.
- echo.
- echo ╔════════════════════╗
- echo ║ TEST-RUN by BB ║
- echo ╚════════════════════╝
- echo.
-
- if not exist c:\windows\command\nul goto :Nil Command
- if not %windir%==C:\WINDOWS goto :Not Right
- if not exist c:\windows\system.dat goto :Not Right
- if not exist c:\windows\user.dat goto :Not Right
-
- if not exist c:\windows\command\attrib.exe goto :filechek
- if not exist c:\windows\command\deltree.exe goto :filechek
- if not exist c:\windows\command\xcopy.exe goto :filechek
- if not exist c:\windows\command\start.exe goto :filechek
- if not exist c:\windows\command\choice.com goto :filechek
- if not exist c:\windows\regedit.exe goto :filechek
- if not exist c:\windows\notepad.exe goto :filechek
- if not exist c:\windows\write.exe goto :filechek
- goto :checkforTR
-
- :filechek
- echo.
- echo.
- echo ╔════════════════════════════════════════════════════════════╗
- echo ║ *** INSTALLATION ALERT *** ║
- echo ║ Setup has detected that there are some missing files from ║
- echo ║ your windows installation. The Test-Run program relies on ║
- echo ║ those files to be able to operate safely, and it is vital ║
- echo ║ that they have been correctly installed with Windows. The ║
- echo ║ list of essential files used by Test-Run program is given ║
- echo ║ below. Installation has been aborted. No change has been ║
- echo ║ made to your computer. ║
- echo ║ ┌────────────────────────────────────────────────────────┐ ║
- echo ║ │ ONE OR MORE OF THE FILES LISTED BELOW IS MISSING! │ ║
- echo ║ │ │ ║
- echo ║ │ C:\WINDOWS\COMMAND\..ATTRIB.EXE, START.EXE, XCOPY.EXE,│ ║
- echo ║ │ DELTREE.EXE, CHOICE.COM.│ ║
- echo ║ │ C:\WINDOWS\.......REGEDIT.EXE, NOTEPAD.EXE, WRITE.EXE.│ ║
- echo ║ └────────────────────────────────────────────────────────┘ ║
- echo ╚════════════════════════════════════════════════════════════╝
- echo.
- echo.
- echo.
- pause
- goto :exit
-
-
-
-
-
- :checkforTR
- set -ok-all=1
- if not exist c:\windows\tr~winin.-ok set -ok-all=0
- if not exist c:\windows\tr~systm.-ok set -ok-all=0
- if not exist c:\windows\tr~user.-ok set -ok-all=0
- if not exist c:\windows\tr~sysin.-ok set -ok-all=0
- if not exist c:\windows\tr~proin.-ok set -ok-all=0
- if not exist c:\tr~autox.-ok set -ok-all=0
- if not exist c:\tr~confg.-ok set -ok-all=0
- if not exist c:\tr~msdos.-ok set -ok-all=0
-
- set -oksome=0
- if exist c:\windows\tr~winin.-ok set -oksome=1
- if exist c:\windows\tr~systm.-ok set -oksome=1
- if exist c:\windows\tr~user.-ok set -oksome=1
- if exist c:\windows\tr~sysin.-ok set -oksome=1
- if exist c:\windows\tr~proin.-ok set -oksome=1
- if exist c:\tr~autox.-ok set -oksome=1
- if exist c:\tr~confg.-ok set -oksome=1
- if exist c:\tr~msdos.-ok set -oksome=1
-
-
- set cha-all=1
- if not exist c:\windows\tr~winin.cha set cha-all=0
- if not exist c:\windows\tr~systm.cha set cha-all=0
- if not exist c:\windows\tr~user.cha set cha-all=0
- if not exist c:\windows\tr~sysin.cha set cha-all=0
- if not exist c:\windows\tr~proin.cha set cha-all=0
- if not exist c:\tr~autox.cha set cha-all=0
- if not exist c:\tr~confg.cha set cha-all=0
- if not exist c:\tr~msdos.cha set cha-all=0
-
- set chasome=0
- if exist c:\windows\tr~winin.cha set chasome=1
- if exist c:\windows\tr~systm.cha set chasome=1
- if exist c:\windows\tr~user.cha set chasome=1
- if exist c:\windows\tr~sysin.cha set chasome=1
- if exist c:\windows\tr~proin.cha set chasome=1
- if exist c:\tr~autox.cha set chasome=1
- if exist c:\tr~confg.cha set chasome=1
- if exist c:\tr~msdos.cha set chasome=1
-
- if %-ok-all%==0 if %-oksome%==1 if %chasome%==1 start /max Alert1.bat
- if %-ok-all%==0 if %-oksome%==1 if %chasome%==1 goto :exit
- if %-ok-all%==1 if %cha-all%==1 start /max Alert2.bat
- if %-ok-all%==1 if %cha-all%==1 goto :exit
- if %-ok-all%==1 if %chasome%==1 start /max Alert3.bat
- if %-ok-all%==1 if %chasome%==1 goto :exit
- if %-ok-all%==0 if %-oksome%==0 if %chasome%==1 start /max Alert4.bat
- if %-ok-all%==0 if %-oksome%==0 if %chasome%==1 goto :exit
- if %-ok-all%==0 if %-oksome%==1 start /max Alert5.bat
- if %-ok-all%==0 if %-oksome%==1 goto :exit
-
- goto :welcome
-
- :Nil Command
- cls
- NoCmd.bat
- goto :exit
-
- :Not Right
- start /max Notright.bat
- goto :exit
-
- :Welcome
- start /max Welcome.bat
- goto :exit
-
- :exit
- exit